//
//  XSDataSaveManager.h
//  XSDataBaseDemo
//
//  Created by 大帅 on 2023/12/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XSDataSaveManager : NSObject

/// 单例
+ (instancetype)sharedManager;

/// 新增一条数据
- (void)addDownloadSingleData:(XSTestModel *)model;

/// 新增多条数据
- (void)addDownloadMoreData:(NSArray *)list;

/// 删除指定数据
- (void)deleteDownloadSingleData:(XSTestModel *)model;

/// 删除全部数据
- (void)deleteDownloadAllData;

/// 修改指定数据
- (void)updateDownloadSingleData:(XSTestModel *)model;

/// 查看指定数据
- (XSTestModel *)lookDownloadSingleData:(XSTestModel *)model;

/// 查看全部数据
- (NSArray *)lookDownloadAllData;

@end

NS_ASSUME_NONNULL_END
